~ubuntu-branches/ubuntu/edgy/bookmarkbridge/edgy

« back to all changes in this revision

Viewing changes to configure.in

  • Committer: Bazaar Package Importer
  • Author(s): Masami Ichikawa
  • Date: 2006-06-06 21:09:51 UTC
  • mfrom: (1.1.1 upstream) (2.1.1 dapper)
  • Revision ID: james.westby@ubuntu.com-20060606210951-rquwsg47e0icc7e4
Tags: 0.76-2
Added 01_dlghelp.dpatch and 02_image_path.dpatch. 

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# Original Author was Kalle@kde.org
2
 
# I lifted it in some mater. (Stephan Kulow)
3
 
# I used much code from Janos Farkas
4
 
 
5
 
dnl Process this file with autoconf to produce a configure script.
6
 
 
7
 
AC_INIT(acinclude.m4) dnl a source file from your sub dir
8
 
 
9
 
dnl This is so we can use kde-common
10
 
AC_CONFIG_AUX_DIR(admin)
11
 
 
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"
20
 
AC_SUBST(CXXFLAGS)
21
 
 
22
 
AC_CHECK_LIB(xml2, xmlNewParserCtxt, [], [
23
 
        "You must have the libxml2 development files installed"
24
 
        exit -1
25
 
        ])
26
 
 
27
 
AC_CANONICAL_SYSTEM
28
 
 
29
 
dnl Automake doc recommends to do this only here. (Janos)
30
 
AM_INIT_AUTOMAKE(bookmarkbridge,0.1)
31
 
 
32
 
dnl KDE_SET_PREFIX
33
 
 
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"
38
 
fi
39
 
 
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`
45
 
  ifelse($3, ,
46
 
    AC_DEFINE_UNQUOTED($1, "$ac_define_dir"),
47
 
    AC_DEFINE_UNQUOTED($1, "$ac_define_dir", $3))
48
 
])
49
 
 
50
 
AC_DEFINE_DIR(DATADIR, datadir, "BookmarkBridge Data Directory")
51
 
 
52
 
dnl generate the config header
53
 
AM_CONFIG_HEADER(config.h) dnl at the distribution this done
54
 
 
55
 
dnl Checks for programs.
56
 
AC_CHECK_COMPILERS
57
 
 
58
 
dnl CXXFLAGS="$NOOPT_CXXFLAGS" dnl __kdevelop[noopt]__
59
 
dnl CFLAGS="$NOOPT_CFLAGS" dnl __kdevelop[noopt]__
60
 
CXXFLAGS="$CXXFLAGS $USE_EXCEPTIONS" dnl __kdevelop[exc]__
61
 
 
62
 
AC_ENABLE_SHARED(yes)
63
 
AC_ENABLE_STATIC(no)
64
 
KDE_PROG_LIBTOOL
65
 
 
66
 
all_libraries="$all_libraries $USER_LDFLAGS"
67
 
all_includes="$all_includes $USER_INCLUDES"
68
 
AC_SUBST(all_includes)
69
 
AC_SUBST(all_libraries)
70
 
 
71
 
dnl for NLS support. Call them in this order!
72
 
dnl WITH_NLS is for the po files
73
 
AM_KDE_WITH_NLS
74
 
 
75
 
KDE_USE_QT
76
 
AC_PATH_QT
77
 
 
78
 
dnl KDE_NEED_FLEX dnl __kdevelop__
79
 
dnl AC_PROG_YACC dnl __kdevelop__
80
 
 
81
 
dnl Perform program name transformation
82
 
dnl AC_ARG_PROGRAM
83
 
 
84
 
 
85
 
dnl PACKAGE set before
86
 
 
87
 
KDE_CREATE_SUBDIRSLIST
88
 
 
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)
94
 
AC_OUTPUT()