Annotation of epiphany/configure.in, revision 1.8

1.1       mpeseng     1: dnl Process this file with autoconf to produce a configure script.
                      2: 
                      3: AC_INIT(configure.in)
                      4: AC_PREREQ(2.50)
                      5: 
                      6: GCONF_REQUIRED=1.0.4
                      7: GDK_PIXBUF_REQUIRED=0.13.0
                      8: GLIB_REQUIRED=1.2.9
                      9: LIBGLADE_REQUIRED=0.13
                     10: GNOME_LIBS_REQUIRED=1.2.11
                     11: GNOME_REQUIRED=1.2.8
                     12: GNOME_VFS_REQUIRED=1.0.1
                     13: GTK_REQUIRED=1.2.9
                     14: LIBXML_REQUIRED=1.8.14
                     15: OAF_REQUIRED=0.6.5
                     16: ORBIT_REQUIRED=0.5.7
                     17: MOZILLA_REQUIRED=1.1
                     18: SCROLLKEEPER_REQUIRED=0.1.4
                     19: 
                     20: AC_SUBST(SCROLLKEEPER_REQUIRED)
                     21: AC_SUBST(GNOME_VFS_REQUIRED)
                     22: AC_SUBST(LIBXML_REQUIRED)
                     23: AC_SUBST(ORBIT_REQUIRED)
                     24: AC_SUBST(LIBGLADE_REQUIRED)
                     25: AC_SUBST(GNOME_LIBS_REQUIRED)
                     26: AC_SUBST(MOZILLA_REQUIRED)
                     27: 
                     28: AC_ENABLE_SHARED(yes)
                     29: AC_ENABLE_STATIC(no)
                     30: 
1.8     ! mpeseng    31: AM_INIT_AUTOMAKE(epiphany, 0.4.1)
1.1       mpeseng    32: AM_CONFIG_HEADER(config.h)
                     33: 
                     34: AM_PROG_LIBTOOL
                     35: 
                     36: AC_ISC_POSIX
                     37: AC_PROG_CC
                     38: AC_PROG_CXX
                     39: AM_PROG_CC_STDC
                     40: AC_HEADER_STDC
                     41: AC_PROG_INTLTOOL
                     42: AC_PATH_PROG(GLIB_GENMARSHAL, glib-genmarshal)
                     43: 
1.2       mpeseng    44: GNOME_COMPILE_WARNINGS(error)
                     45: 
1.1       mpeseng    46: dnl ******************************
                     47: dnl Nautilus View checking
                     48: dnl ******************************
                     49: 
                     50: build_nautilus_view=no
                     51: AC_ARG_ENABLE(nautilus-view, [  --enable-nautilus-view  (auto,yes,no)
                     52:                          Enable Nautilus View Galeon Component])
                     53: 
                     54: AC_MSG_CHECKING(if NautilusView Galeon component is wanted)
                     55: if test "x$enable_nautilus_view" = "x" ; then
                     56:   enable_nautilus_view=auto
                     57: fi
                     58: if test "x$enable_nautilus_view" = "xauto"; then
                     59:   temptest=`pkg-config --cflags libnautilus 2> /dev/null`
                     60:   if test "x$temptest" = "x" ; then
                     61:      enable_nautilus_view=no
                     62:   else
                     63:      enable_nautilus_view=yes
                     64:   fi
                     65: fi
                     66: if test "x$enable_nautilus_view" = "xyes"; then
                     67:   dnl AC_DEFINE(ENABLE_NAUTILUS_VIEW)
                     68:   nautilusview_pkgs=libnautilus
                     69: fi
                     70: AC_MSG_RESULT($enable_nautilus_view)
                     71: AM_CONDITIONAL(ENABLE_NAUTILUS_VIEW, test "x$enable_nautilus_view" = "xyes")
                     72: 
                     73: dnl See if nautilus is installed in other prefix than epiphany so that we can load
                     74: dnl nautilus throbbers even then.  
                     75: dnl Maybe FIXME: make this check not require libnautilus.pc
                     76: dnl
                     77: nautilus_prefix=`pkg-config --variable=prefix libnautilus 2> /dev/null`
                     78: if test "x${nautilus_prefix}" != "x"; then
                     79:   if test "x${prefix}" = "xNONE"; then
                     80:     epiphany_prefix="${ac_default_prefix}"
                     81:   else
                     82:     epiphany_prefix="${prefix}"
                     83:   fi
                     84: 
                     85:   dnl We already search for nautilus throbbers in epiphany prefix, don't add the
                     86:   dnl same directory or we'd show the throbbers twice.
                     87:   if test "x${nautilus_prefix}" != "x${epiphany_prefix}"; then
                     88:     AC_DEFINE_UNQUOTED(NAUTILUS_PREFIX, "${nautilus_prefix}")
                     89:   fi
                     90: fi
                     91: 
                     92: PKG_CHECK_MODULES(EPIPHANY_DEPENDENCY, gtk+-2.0 libxml-2.0 libgnomeui-2.0 libglade-2.0 bonobo-activation-2.0 ORBit-2.0 libglade-2.0 gnome-vfs-2.0 gnome-vfs-module-2.0 gconf-2.0 $nautilusview_pkgs)
                     93: AC_SUBST(EPIPHANY_DEPENDENCY_CFLAGS)
                     94: AC_SUBST(EPIPHANY_DEPENDENCY_LIBS)
                     95: 
                     96: ORBIT_IDL="`$PKG_CONFIG --variable=orbit_idl ORBit-2.0`"
                     97: AC_SUBST(ORBIT_IDL)
                     98: 
                     99: LIBBONOBO_IDL="`$PKG_CONFIG --variable=idldir libbonobo-2.0`"
                    100: AC_SUBST(LIBBONOBO_IDL)
                    101: 
                    102: BONOBO_ACTIVATION_IDL="`$PKG_CONFIG --variable=idldir bonobo-activation-2.0`"
                    103: AC_SUBST(BONOBO_ACTIVATION_IDL)
                    104: 
                    105: PKG_CHECK_MODULES(MOZILLA_COMPONENT, mozilla-gtkmozembed)
                    106: dnl AC_DEFINE(ENABLE_MOZILLA_EMBED)
                    107: AC_SUBST(MOZILLA_COMPONENT_CFLAGS)
                    108: AC_SUBST(MOZILLA_COMPONENT_LIBS)
                    109: 
                    110: MOZILLA_INCLUDE_ROOT="`$PKG_CONFIG --variable=includedir mozilla-gtkmozembed`"
                    111: AC_SUBST(MOZILLA_INCLUDE_ROOT)
                    112: 
                    113: MOZILLA_HOME="`$PKG_CONFIG --variable=libdir mozilla-gtkmozembed`"
                    114: AC_SUBST(MOZILLA_HOME)
                    115: 
                    116: dnl whether to build with DEBUG defined
                    117: AC_ARG_WITH(mozilla-debug,
                    118:        [  --with-mozilla-debug        Use a debug mozilla build],
                    119:        CXXFLAGS="-DDEBUG $CXXFLAGS",)
                    120: 
                    121: AC_ARG_ENABLE(cpp-rtti,
                    122:         [  --enable-cpp-rtti       Enable C++ RTTI (for cvs gcc)],,
                    123:         enable_cpp_rtti=no)
                    124: 
                    125: if test "x$enable_cpp_rtti" = "xno"; then
                    126:   CXXFLAGS="-fno-rtti $CXXFLAGS"
                    127: fi
                    128: 
                    129: dnl Specify the gconf configuration source, 
                    130: dnl default to xml::$(sysconfdir)/gconf/gconf.xml.defaults
                    131: 
                    132: AC_PATH_PROG(GCONFTOOL, gconftool-2, no)
                    133: 
                    134: if test x"$GCONFTOOL" = xno; then
                    135:   AC_MSG_ERROR([gconftool-2 executable not found in your path - should be installed with GConf])
                    136: fi
                    137: 
                    138: AM_GCONF_SOURCE_2
                    139: 
                    140: dnl *******************************
                    141: dnl Internationalization
                    142: dnl ******************************* 
                    143: dnl Add the languages which your application supports here.
                    144: 
                    145: ALL_LINGUAS=""
                    146: GETTEXT_PACKAGE=epiphany-2.0
                    147: AC_SUBST(GETTEXT_PACKAGE)
                    148: AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE,"$GETTEXT_PACKAGE")
                    149: AM_GLIB_GNU_GETTEXT
                    150: 
                    151: dnl uninstalled share dir to search data
                    152: AC_DEFINE_UNQUOTED(SHARE_UNINSTALLED_DIR,"`pwd`/data",[path to source data dir])
                    153: 
                    154: AC_OUTPUT([
                    155: Makefile
                    156: data/Makefile
                    157: data/glade/Makefile
                    158: data/art/Makefile
                    159: data/ui/Makefile
                    160: data/GNOME_Epiphany_NautilusView.server
                    161: data/epiphany.schemas
                    162: data/GNOME_Epiphany_Automation.server
                    163: lib/Makefile
                    164: lib/widgets/Makefile
                    165: lib/toolbar/Makefile
                    166: embed/Makefile
                    167: embed/mozilla/Makefile
                    168: src/Makefile
1.3       mpeseng   169: src/bookmarks/Makefile
1.1       mpeseng   170: po/Makefile.in
                    171: ])

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>