aboutsummaryrefslogtreecommitdiffstats
path: root/m4
diff options
context:
space:
mode:
authorChristian Persch <chpe@cvs.gnome.org>2006-02-03 01:56:28 +0800
committerChristian Persch <chpe@src.gnome.org>2006-02-03 01:56:28 +0800
commitb311ff4ba10c572412ff812806a9e53c8928500c (patch)
tree1531366f72dbe745e96861f65465476e95936d7f /m4
parent02459287792457cac98e02641a7d2aaad303b88d (diff)
downloadgsoc2013-epiphany-b311ff4ba10c572412ff812806a9e53c8928500c.tar
gsoc2013-epiphany-b311ff4ba10c572412ff812806a9e53c8928500c.tar.gz
gsoc2013-epiphany-b311ff4ba10c572412ff812806a9e53c8928500c.tar.bz2
gsoc2013-epiphany-b311ff4ba10c572412ff812806a9e53c8928500c.tar.lz
gsoc2013-epiphany-b311ff4ba10c572412ff812806a9e53c8928500c.tar.xz
gsoc2013-epiphany-b311ff4ba10c572412ff812806a9e53c8928500c.tar.zst
gsoc2013-epiphany-b311ff4ba10c572412ff812806a9e53c8928500c.zip
Add GECKO_CHECK_HEADERS, wrapping AC_CHECK_HEADERS.
2006-02-02 Christian Persch <chpe@cvs.gnome.org> * m4/gecko.m4: Add GECKO_CHECK_HEADERS, wrapping AC_CHECK_HEADERS. * configure.ac: Simplify some header checks with GECKO_CHECK_HEADERS. Check for nsINonBlockingAlertService.h. * embed/mozilla/EphyPromptService.cpp: * embed/mozilla/EphyPromptService.h: * embed/mozilla/MozRegisterComponents.cpp: Implement nsINonBlockingAlertService.
Diffstat (limited to 'm4')
-rw-r--r--m4/gecko.m416
1 files changed, 10 insertions, 6 deletions
diff --git a/m4/gecko.m4 b/m4/gecko.m4
index 22f95151f..0611b024d 100644
--- a/m4/gecko.m4
+++ b/m4/gecko.m4
@@ -283,7 +283,7 @@ $1[]_VERSION_MINOR=$gecko_cv_gecko_version_minor
# ***************************************************************************
# ***************************************************************************
-# GECKO_DISPATCH([MACRO], [HEADERS], ...)
+# GECKO_DISPATCH([MACRO], [INCLUDEDIRS], ...)
m4_define([GECKO_DISPATCH],
[
@@ -301,15 +301,15 @@ CPPFLAGS="$CPPFLAGS $_GECKO_EXTRA_CPPFLAGS -I$_GECKO_INCLUDE_ROOT $($PKG_CONFIG
CXXFLAGS="$CXXFLAGS $_GECKO_EXTRA_CXXFLAGS $($PKG_CONFIG --cflags-only-other ${gecko_cv_gecko}-xpcom)"
LDFLAGS="$LDFLAGS $_GECKO_EXTRA_LDFLAGS $($PKG_CONFIG --libs ${gecko_cv_gecko}-xpcom) -Wl,--rpath=$_GECKO_HOME"
-_GECKO_DISPATCH_HEADERS="$2"
+_GECKO_DISPATCH_INCLUDEDIRS="$2"
# Sigh Gentoo has a rubbish header layout
# http://bugs.gentoo.org/show_bug.cgi?id=100804
# Mind you, it's useful to be able to test against uninstalled mozilla builds...
-_GECKO_DISPATCH_HEADERS="$_GECKO_DISPATCH_HEADERS necko dom"
+_GECKO_DISPATCH_INCLUDEDIRS="$_GECKO_DISPATCH_INCLUDEDIRS dom necko pref"
# Now add them to CPPFLAGS
-for i in $_GECKO_DISPATCH_HEADERS; do
+for i in $_GECKO_DISPATCH_INCLUDEDIRS; do
CPPFLAGS="$CPPFLAGS -I$_GECKO_INCLUDE_ROOT/$i"
done
@@ -327,11 +327,15 @@ AC_LANG_POP([C++])
# ***************************************************************************
# ***************************************************************************
-# GECKO_COMPILE_IFELSE(HEADERS, PROGRAM, [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND])
+# GECKO_CHECK_HEADERS(INCLUDEDIRS, HEADERS, [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND], [INCLUDES])
+
+AC_DEFUN([GECKO_CHECK_HEADERS],[GECKO_DISPATCH([AC_CHECK_HEADERS],$@)])
+
+# GECKO_COMPILE_IFELSE(INCLUDEDIRS, PROGRAM, [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND])
AC_DEFUN([GECKO_COMPILE_IFELSE],[GECKO_DISPATCH([AC_COMPILE_IFELSE],$@)])
-# GECKO_RUN_IFELSE(HEADERS, PROGRAM, [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND])
+# GECKO_RUN_IFELSE(INCLUDEDIRS, PROGRAM, [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND])
AC_DEFUN([GECKO_RUN_IFELSE],[GECKO_DISPATCH([AC_RUN_IFELSE],$@)])