1 dnl Process this file with autoconf to produce a configure script.
2 dnl Created by Anjuta application wizard.
6 AM_INIT_AUTOMAKE([1.7.9 foreign dist-bzip2 dist-zip])
7 AM_CONFIG_HEADER(config.h)
16 # introduce the optional configure parameter for the path of libXXX.a
20 [try this for the hb-library prefix install directory]
26 if test $hb_PATHSET = 1 ; then
29 CXXFLAGS="$CXXFLAGS -I$with_hb/libhb"
30 CFLAGS="$CFLAGS -I$with_hb/libhb"
31 LDFLAGS="$LDFLAGS -L$with_hb/libhb -L$with_hb/contrib/lib"
32 AC_SUBST(HB_DIR, "$with_hb")
35 CXXFLAGS="$CXXFLAGS "'-I$(top_srcdir)/'"$with_hb/libhb"
36 CFLAGS="$CFLAGS "'-I$(top_srcdir)/'"$with_hb/libhb"
37 LDFLAGS="$LDFLAGS "'-L$(top_srcdir)/'"$with_hb/libhb "'-L$(top_srcdir)/'"$with_hb/contrib/lib"
38 AC_SUBST(HB_DIR, '$(top_srcdir)/'"$with_hb")
42 CXXFLAGS="$CXXFLAGS "'-I$(top_srcdir)/'"../libhb"
43 CFLAGS="$CFLAGS "'-I$(top_srcdir)/'"../libhb"
44 LDFLAGS="$LDFLAGS "'-L$(top_srcdir)/'"../libhb "'-L$(top_srcdir)/'"../contrib/lib"
45 AC_SUBST(HB_DIR, '$(top_srcdir)/'"..")
49 AS_HELP_STRING([--enable-dl], [enable libdl]),
50 use_libdl=yes, use_libdl=no)
53 AS_HELP_STRING([--enable-gst], [enable gstreamer on Win32]),
54 w32_gst=yes, w32_gst=no)
56 # overwrite global variable (used for Makefile generation)
57 AC_SUBST(GLOBALCXXFLAGS, $CXXFLAGS )
58 AC_SUBST(GLOBALLDFLAGS, $LDFLAGS )
62 dnl ***************************************************************************
63 dnl Internatinalization
64 dnl ***************************************************************************
66 AC_SUBST(GETTEXT_PACKAGE)
67 AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE,"$GETTEXT_PACKAGE", [GETTEXT package name])
69 IT_PROG_INTLTOOL([0.35.0])
75 if test "x$w32_gst" = "xyes" ; then
76 GHB_PACKAGES="gtk+-2.0 >= 2.10 gthread-2.0 gstreamer-0.10 gstreamer-interfaces-0.10 gstreamer-video-0.10 gstreamer-pbutils-0.10 gio-2.0"
78 GHB_PACKAGES="gtk+-2.0 >= 2.10 gthread-2.0 gio-2.0"
83 GHB_PACKAGES="gtk+-2.0 >= 2.10 gthread-2.0 gstreamer-0.10 gstreamer-interfaces-0.10 gstreamer-video-0.10 gstreamer-pbutils-0.10 gio-2.0 libnotify gudev-1.0"
88 if test "x$w32_gst" = "xyes" -o "x$mingw_flag" != "xyes" ; then
89 CXXFLAGS="$CXXFLAGS -D_ENABLE_GST"
90 CFLAGS="$CFLAGS -D_ENABLE_GST"
93 PKG_CHECK_MODULES(OldWebKitGtk, WebKitGtk, old_webkit=yes, old_webkit=no)
94 if test "x$old_webkit" = "xyes" ; then
95 if test "x$mingw_flag" = "xno" ; then
96 GHB_PACKAGES="$GHB_PACKAGES WebKitGtk"
97 CXXFLAGS="$CXXFLAGS -D_OLD_WEBKIT"
98 CFLAGS="$CFLAGS -D_OLD_WEBKIT"
101 if test "x$mingw_flag" = "xno" ; then
102 GHB_PACKAGES="$GHB_PACKAGES webkit-1.0"
106 AM_CONDITIONAL([MINGW], [test "x$mingw_flag" = "xyes"])
108 PKG_CHECK_MODULES(GHB, [$GHB_PACKAGES])
112 if test "x$use_libdl" = "xyes" ; then
113 GHB_LIBS="$GHB_LIBS -ldl"