/[gcjwebplugin]/gcjwebplugin/configure.ac
ViewVC logotype

Diff of /gcjwebplugin/configure.ac

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.14 by fitzsim, Mon Sep 15 02:52:00 2003 UTC revision 1.15 by fitzsim, Sun Oct 26 03:14:44 2003 UTC
# Line 1  Line 1 
1  dnl Process this file with autoconf to produce a configure script.  dnl Process this file with autoconf to produce a configure script.
2    
3  AC_INIT(gcjwebplugin, 0.0.3)  AC_INIT(gcjwebplugin, 0.0.3)
4  AC_CONFIG_SRCDIR(src/GCJPluginFactory.h)  AC_CONFIG_SRCDIR(src/gcjwebplugin.cc)
5  AM_INIT_AUTOMAKE(1.6.0)  AM_INIT_AUTOMAKE(1.6.0)
6    
7  AM_CONFIG_HEADER(config.h)  AM_CONFIG_HEADER(config.h)
# Line 19  AC_CHECK_FUNCS([strdup]) Line 19  AC_CHECK_FUNCS([strdup])
19    
20  AC_CHECK_PROG([MOZILLA_CONFIG], [mozilla-config], [mozilla-config], [$PATH])  AC_CHECK_PROG([MOZILLA_CONFIG], [mozilla-config], [mozilla-config], [$PATH])
21    
22  PKG_CHECK_MODULES(LIBGCJ, libgcj >= "3.4",  PKG_CHECK_MODULES(LIBGCJ, libgcj >= 3.4)
         [  
                 CXXFLAGS="$CXXFLAGS $LIBGCJ_CFLAGS"  
                 LDFLAGS="$LDFLAGS $LIBGCJ_LDFLAGS"  
         ],  
         [  
                 AC_MSG_ERROR([Could not locate libgcj.])  
         ])  
   
 PKG_CHECK_MODULES(GLIB, glib-2.0 >= 2.0,  
         [  
                 CXXFLAGS="$CXXFLAGS $GLIB_CFLAGS"  
                 LDFLAGS="$LDFLAGS $GLIB_LDFLAGS"  
         ],  
         [  
                 AC_MSG_ERROR([Could not locate GLib.])  
         ])  
   
 # For some reason, with automake-1.6 these variables are not being  
 # substituted properly by the PKG_CHECK_MODULES macro.  So substitute  
 # them manually.  
23  AC_SUBST(LIBGCJ_CFLAGS)  AC_SUBST(LIBGCJ_CFLAGS)
24  AC_SUBST(LIBGCJ_LIBS)  AC_SUBST(LIBGCJ_LIBS)
25    
26  AC_ARG_ENABLE(debug, [  --enable-debug          enable debugging support],  PKG_CHECK_MODULES(GLIB, glib-2.0 >= 2.0)
27          AC_DEFINE(DEBUG,, Define if debug output should be enabled),  AC_SUBST(GLIB_CFLAGS)
28  )  AC_SUBST(GLIB_LIBS)
29    
30  AC_ARG_ENABLE(netscape-api, [  --enable-netscape-api   enable the Netscape API and disables the OJI API])  AC_ARG_ENABLE([xpcom-api],
31  AM_CONDITIONAL([USE_NETSCAPE_API], [test "x$enable_netscape_api" = xyes])                [AC_HELP_STRING([--enable-xpcom-api],
32                                  [use deprecated XPCOM plug-in API])])
33  AC_ARG_ENABLE(cni, [  --enable-cni            enable CNI usage (only works together with --enable-netscape-api)])  AM_CONDITIONAL([USE_XPCOM_API],
34  AM_CONDITIONAL([USE_CNI], [test "x$enable_cni" = xyes])                 [test "x$enable_xpcom_api" = xyes])
35    
36  AC_MSG_CHECKING([plugin installation diretory])  AC_ARG_ENABLE([debug],
37  AC_ARG_WITH(plugin-dir, [  --with-plugin-dir       directory to install the plugin into],                [AC_HELP_STRING([--enable-debug],
38          [                                [enable debugging output])],
39                  PLUGIN_DIR=$withval                [AC_DEFINE([DEBUG], [], [Enable debugging output.])])
40          ],  
41          [  AC_ARG_WITH([with-plugin-dir],
42                  PLUGIN_DIR=$HOME/.mozilla/plugins/              [AC_HELP_STRING([--with-plugin-dir],
43          ],                              [install directory (default is ~/.mozilla/plugins)])],
44  )              [AC_SUBST([PLUGIN_DIR], [$withval])],
45                [AC_SUBST([PLUGIN_DIR], [$HOME/.mozilla/plugins/])])
46  AC_MSG_RESULT([$PLUGIN_DIR])  AC_MSG_RESULT([$PLUGIN_DIR])
 AC_SUBST(PLUGIN_DIR)  
47    
48  AC_OUTPUT( \  AC_OUTPUT( \
49          Makefile \          Makefile \

Legend:
Removed from v.1.14  
changed lines
  Added in v.1.15

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26