1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114
|
dnl Process this file with autoconf to produce a configure script.
AC_INIT(src/main.c)
AM_INIT_AUTOMAKE(gtranscript, 0.2.0)
AM_MAINTAINER_MODE
AM_ACLOCAL_INCLUDE(macros)
GNOME_INIT
AC_PROG_CC
AC_ISC_POSIX
AC_HEADER_STDC
AC_ARG_PROGRAM
AM_PROG_LIBTOOL
dnl GNOME_COMPILE_WARNINGS
AM_PATH_GTK(1.2.0,
,
AC_MSG_ERROR(Cannot find GTK: Is gtk-config in path?))
dnl Only use -Wall if we have gcc
if test "x$GCC" = "xyes"; then
if test -z "`echo "$CFLAGS" | grep "\-Wall" 2> /dev/null`" ; then
CFLAGS="$CFLAGS -Wall"
fi
fi
dnl
dnl Where do we want the plugins to be.
dnl
AC_ARG_WITH(gtrans-plugin-dir,
[
===== Special GNOME Transcript options ======
--with-gtrans-plugin-dir=DIR Load gtranscript plugins from DIR (optional)],
gnome_transcript_plugin_dir="$withval",
[
if test "x$prefix" = "xNONE"
then
gnome_transcript_plugin_dir="$ac_default_prefix/lib/gtranscript/plugins/"
else
gnome_transcript_plugin_dir="$prefix/lib/gtranscript/plugins/"
fi
]
)
AC_SUBST(gnome_transcript_plugin_dir)
dnl
dnl Where libgtrans_ifase lib is found in your system
dnl
AC_ARG_WITH(gtrans-ifase-lib,
[ --with-gtrans-ifase-lib=DIR Location of libgtrans_ifase library files(optional)],
libgtrans_ifase_lib="$withval",
[
if test "x$prefix" = "xNONE"
then
libgtrans_ifase_lib="$ac_default_prefix/lib/"
else
libgtrans_ifase_lib="$prefix/lib/"
fi
]
)
AC_SUBST(libgtrans_ifase_lib)
dnl
dnl Where libgtrans_ifase includes are found on your system
dnl
AC_ARG_WITH(gtrans-ifase-includes,
[ --with-gtrans-ifase-includes=DIR Location of libgtrans_ifase include(optional)],
libgtrans_ifase_includes="$withval",
[
if test "x$prefix" = "xNONE"
then
libgtrans_ifase_includes="$ac_default_prefix/include/"
else
libgtrans_ifase_includes="$prefix/include/"
fi
]
)
AC_SUBST(libgtrans_ifase_includes)
GNOME_CFLAGS=`gnome-config gnomeui --cflags 2>/dev/null`
GNOME_LIBS=`gnome-config gnomeui --libs 2>/dev/null`
CFLAGS="$CFLAGS $GNOME_CFLAGS"
LIBS="$LIBS $GNOME_LIBS"
AC_OUTPUT([
Makefile
macros/Makefile
data/Makefile
src/Makefile
src/pixmaps/Makefile])
echo ===============================================================
echo gnome-transcript plugins will be loaded from $gnome_transcript_plugin_dir
echo libgtrans_ifase library files will be loaded from $libgtrans_ifase_lib
echo libgtrans_ifase include files will be loaded from $libgtrans_ifase_includes
|