1
# Original Author was Kalle@kde.org
2
# I lifted it in some mater. (Stephan Kulow)
3
# I used much code from Janos Farkas
5
dnl Process this file with autoconf to produce a configure script.
7
AC_INIT(acinclude.m4) dnl a source file from your sub dir
9
dnl This is so we can use kde-common
10
AC_CONFIG_AUX_DIR(admin)
12
dnl Specify libxml2 include path
13
AC_ARG_WITH(libxml2-include,
14
[ --with-libxml2-include=path
15
specify libxml2 include path
16
(default is /usr/include/libxml2) ],
17
[ libxml_includes="-I$withval" ],
18
[ libxml_includes="-I/usr/include/libxml2"])
19
CXXFLAGS="$CXXFLAGS $libxml_includes"
22
AC_CHECK_LIB(xml2, xmlNewParserCtxt, [], [
23
"You must have the libxml2 development files installed"
29
dnl Automake doc recommends to do this only here. (Janos)
30
AM_INIT_AUTOMAKE(bookmarkbridge,0.1)
34
AC_PREFIX_DEFAULT(/usr/local)
35
if test "x$prefix" = "xNONE"; then
36
prefix=$ac_default_prefix
37
ac_configure_args="$ac_configure_args --prefix $prefix"
40
AC_DEFUN([AC_DEFINE_DIR], [
41
test "x$prefix" = xNONE && prefix="$ac_default_prefix"
42
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
43
ac_define_dir=`eval echo [$]$2`
44
ac_define_dir=`eval echo [$]ac_define_dir`
46
AC_DEFINE_UNQUOTED($1, "$ac_define_dir"),
47
AC_DEFINE_UNQUOTED($1, "$ac_define_dir", $3))
50
AC_DEFINE_DIR(DATADIR, datadir, "BookmarkBridge Data Directory")
52
dnl generate the config header
53
AM_CONFIG_HEADER(config.h) dnl at the distribution this done
55
dnl Checks for programs.
58
dnl CXXFLAGS="$NOOPT_CXXFLAGS" dnl __kdevelop[noopt]__
59
dnl CFLAGS="$NOOPT_CFLAGS" dnl __kdevelop[noopt]__
60
CXXFLAGS="$CXXFLAGS $USE_EXCEPTIONS" dnl __kdevelop[exc]__
66
all_libraries="$all_libraries $USER_LDFLAGS"
67
all_includes="$all_includes $USER_INCLUDES"
68
AC_SUBST(all_includes)
69
AC_SUBST(all_libraries)
71
dnl for NLS support. Call them in this order!
72
dnl WITH_NLS is for the po files
78
dnl KDE_NEED_FLEX dnl __kdevelop__
79
dnl AC_PROG_YACC dnl __kdevelop__
81
dnl Perform program name transformation
85
dnl PACKAGE set before
87
KDE_CREATE_SUBDIRSLIST
89
dnl add here all your Makefiles. This are created by configure
90
AC_CONFIG_FILES(Makefile)
91
AC_CONFIG_FILES(bookmarkbridge/Makefile)
92
AC_CONFIG_FILES(bookmarkbridge/docs/Makefile)
93
AC_CONFIG_FILES(bookmarkbridge/docs/en/Makefile)