File: configure.in

package info (click to toggle)
bookmarkbridge 0.72-4
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 3,764 kB
  • ctags: 667
  • sloc: sh: 10,502; cpp: 7,491; perl: 2,136; makefile: 203
file content (94 lines) | stat: -rw-r--r-- 2,464 bytes parent folder | download
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
# Original Author was Kalle@kde.org
# I lifted it in some mater. (Stephan Kulow)
# I used much code from Janos Farkas

dnl Process this file with autoconf to produce a configure script.

AC_INIT(acinclude.m4) dnl a source file from your sub dir

dnl This is so we can use kde-common
AC_CONFIG_AUX_DIR(admin)

dnl Specify libxml2 include path
AC_ARG_WITH(libxml2-include,
	[  --with-libxml2-include=path
			  specify libxml2 include path
			  (default is /usr/include/libxml2) ],
	[ libxml_includes="-I$withval" ],
	[ libxml_includes="-I/usr/include/libxml2"])
CXXFLAGS="$CXXFLAGS $libxml_includes"
AC_SUBST(CXXFLAGS)

AC_CHECK_LIB(xml2, xmlNewParserCtxt, [], [
	"You must have the libxml2 development files installed"
	exit -1
	])

AC_CANONICAL_SYSTEM

dnl Automake doc recommends to do this only here. (Janos)
AM_INIT_AUTOMAKE(bookmarkbridge,0.1)

dnl KDE_SET_PREFIX

AC_PREFIX_DEFAULT(/usr/local)
if test "x$prefix" = "xNONE"; then
  prefix=$ac_default_prefix
  ac_configure_args="$ac_configure_args --prefix $prefix"
fi

AC_DEFUN([AC_DEFINE_DIR], [
  test "x$prefix" = xNONE && prefix="$ac_default_prefix"
  test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  ac_define_dir=`eval echo [$]$2`
  ac_define_dir=`eval echo [$]ac_define_dir`
  ifelse($3, ,
    AC_DEFINE_UNQUOTED($1, "$ac_define_dir"),
    AC_DEFINE_UNQUOTED($1, "$ac_define_dir", $3))
])

AC_DEFINE_DIR(DATADIR, datadir, "BookmarkBridge Data Directory")

dnl generate the config header
AM_CONFIG_HEADER(config.h) dnl at the distribution this done

dnl Checks for programs.
AC_CHECK_COMPILERS

dnl CXXFLAGS="$NOOPT_CXXFLAGS" dnl __kdevelop[noopt]__
dnl CFLAGS="$NOOPT_CFLAGS" dnl __kdevelop[noopt]__
CXXFLAGS="$CXXFLAGS $USE_EXCEPTIONS" dnl __kdevelop[exc]__

AC_ENABLE_SHARED(yes)
AC_ENABLE_STATIC(no)
KDE_PROG_LIBTOOL

all_libraries="$all_libraries $USER_LDFLAGS"
all_includes="$all_includes $USER_INCLUDES"
AC_SUBST(all_includes)
AC_SUBST(all_libraries)

dnl for NLS support. Call them in this order!
dnl WITH_NLS is for the po files
AM_KDE_WITH_NLS

KDE_USE_QT
AC_PATH_QT

dnl KDE_NEED_FLEX dnl __kdevelop__
dnl AC_PROG_YACC dnl __kdevelop__

dnl Perform program name transformation
dnl AC_ARG_PROGRAM


dnl PACKAGE set before

KDE_CREATE_SUBDIRSLIST

dnl add here all your Makefiles. This are created by configure
AC_CONFIG_FILES(Makefile)
AC_CONFIG_FILES(bookmarkbridge/Makefile)
AC_CONFIG_FILES(bookmarkbridge/docs/Makefile)
AC_CONFIG_FILES(bookmarkbridge/docs/en/Makefile)
AC_OUTPUT()